

<div class="bjui-pageContent">
	<form action="${base}/admin/questionsTypeEdit2" id="form1"
		data-toggle="validate" data-alertmsg="false">
		<input type="hidden" name="id" value="${vo.id}" />
		<table class="table table-condensed table-hover">
			<tbody>
				<tr>
					<td><label for="name" class="control-label x85">名字：</label> <input data-rule="required"
						type="text" name="name" id="name" value="${vo.name!}" ></td>
					<td>
				</tr>
				<tr>

					<td><label for="parent" class="control-label x85">父id：</label>
						<input type="text" name="parent" id="parent" value="${vo.parent!}"  data-rule="required"
						data-rule="number "></td>
					<td>
				</tr>
						<tr>

					<td><label for="weight" class="control-label x85">位置：</label>
						<input type="text" name="weight" id="weight" value="${vo.weight!}"  data-rule="required"
						data-rule="number "></td>
					<td>
				</tr>
			
				<tr>
					<td id="education"><label for="educationId" class="control-label x85">教育综合：</label>
						<select id="educationId" name="educationId"  
						data-toggle="selectpicker" 
						data-width=150
						>
							<option value="-1">--选择教育综合--</option>
							<#list getEducationType as item>
							<option value="${item.value}"<#if
								vo.educationId??&&vo.educationId==item.value?number>
								selected</#if>>${item.label}</option></#list>

					</select></td>
					<td>
				</tr>
				<tr>
					<td id="subject"><label for="subjectId" class="control-label x85">
							报考科目：</label> <select id="subjectId" name="subjectId"
						data-toggle="selectpicker" data-width=150
						>
							<option value="-1">--选择报考科目--</option>
							<#list getSubjectType as item>
							<option value="${item.value}"<#if
								vo.subjectId??&&vo.subjectId==item.value?number>
								selected</#if>>${item.label}</option></#list>
					</select></td>
					<td>
				</tr>
			</tbody>
		</table>
	</form>
</div>
<div class="bjui-pageFooter">
	<ul>
		<li><button type="button" class="btn-close" data-icon="close">取消</button></li>
		<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	</ul>
</div>

<script type="text/javascript">

	var index=0;
	$(function(){
	
 	$("#education").click(function(){
 	
 	$(".dropdown-menu.inner.selectpicker").children().each(function(i,n){
 	$(n).unbind("click");
      $(n).click(function(){
    $("button[data-id='subjectId']").find(".filter-option").html("--选择报考科目--");
       var ins=-1;
		$("#subjectId").val(ins);
		
			$(".btn-group.bootstrap-select.show-tick").find(".dropdown-menu.inner.selectpicker").children().each(function(j,n){
		if($(n).find("span").html()=="--选择报考科目--"){
		index=j;
		$(n).addClass("selected");
		}
		if(index<j&&index!=0){
		if($(n).is(".selected")){
		$(n).removeClass("selected");
		index=0;
		}
		}
		});
		
		
	});
 	});
	});
	
	$("#subject").click(function(){
 	$(".btn-group.bootstrap-select.show-tick.open").find(".dropdown-menu.inner.selectpicker").children().each(function(i,n){
 	$(n).unbind("click");
      $(n).click(function(){
        $("button[data-id='educationId']").find(".filter-option").html("--选择教育综合--");
       var ins=-1;
		$("#educationId").val(ins);
		
		$(".btn-group.bootstrap-select.show-tick").find(".dropdown-menu.inner.selectpicker").children().each(function(j,n){
		if($(n).find("span").html()=="--选择教育综合--"){
		index=j;
		$(n).addClass("selected");
		}
		if(index<j&&index!=0){
		if($(n).is(".selected")){
		$(n).removeClass("selected");
		index=0;
		}
		}
		});
	});
 	});
	});
	});
</script>